package com.wujilee.shardingsphere.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author yishu
 * @since 2023-01-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_order")
public class EntityOrder extends Model<EntityOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户姓名
     */
    @TableField("order_no")
    private String orderNo;
    
    @TableField("user_id")
    private Long userId;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
